﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;

namespace MidSoft.Sys.Provide
{
    public partial class Show : System.Web.UI.Page
    {
        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    strid = Request.Params["id"];
                    int ProvideId = (Convert.ToInt32(strid));
                    ShowInfo(ProvideId);
                }
            }
        }

        private void ShowInfo(int ProvideId)
        {
            ChinaSoft.BLL.BLL_tb_MidSoft_Provide bll = new ChinaSoft.BLL.BLL_tb_MidSoft_Provide();
            ChinaSoft.Model.Model_tb_MidSoft_Provide model = bll.GetModel(ProvideId);
            this.lblProvideName.Text = model.ProvideName;
            this.lblProvideNumber.Text = model.ProvideNumber;
            this.lblContactName.Text = model.ContactName;
            this.lblContactType.Text = model.ContactType;
            this.lblContactTel.Text = model.ContactTel;
            this.lblContactAddress.Text = model.ContactAddress;
            this.lblContactMail.Text = model.ContactMail;
            this.lblCreateTime.Text = model.CreateTime.ToString();
        }

    }
}